package com.itheima.demo1;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Demo4 {
    public static void main(String[] args) {
        try {
            int[] arr=null;
            show(arr);
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("不匹配");
            e.printStackTrace();
        }

    }
    public static void show(int[] arr){
        System.out.println(arr[0]);
    }
}
